const crypto = require('crypto')
// 密钥是关键
const secretKey = 'Wddsade_./123'
const md5 = (pwd) => {
  return crypto.createHash('md5').update(pwd).digest('hex')
}

const getPassword = (pwd) => {
  return md5(`pwd=${pwd}_secretKey=${secretKey}`)
}

console.log(getPassword('123'))

module.exports = {
  getPassword,
}
